<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>业务功能首页</title>
<link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%=path%>/css/easyui.css" />
<link rel="stylesheet" href="<%=path%>/css/icon.css" />
<style>
body {
	background-color: #f1f1f1;
}

.lightBg {
	background-color: #fff;
	padding: 5px 20px;
}
</style>
</head>
<body>

	<div class="container">
		<div class="row lightBg">
			<!--标题-->
			<h2 class="pull-left">
				<img src="<%=path%>/images/logo.png" style="width: 80px;">
				智游科技项目申报系统
			</h2>
			<p class="pull-right" style="margin-top: 20px;">
				欢迎您，项目负责人 ${user.UName }&nbsp;|&nbsp;<a href="">站内消息(2)</a>&nbsp;<a
					href="<%=path%>/news/toIndex2">退出</a>
			</p>
		</div>
		<div class="row" style="margin-top: 20px;">
			<!--页面一二级菜单部分，公用的-->
			<div class="easyui-tabs" style="">
				<div title="首页" style="padding:10px">首页暂无设计</div>
				<div title="申报管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path %>/report?uid=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">填写申请书</a>
					</div>
				</div>
				<div title="项目管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path%>/toprincipal" class="easyui-linkbutton"
							data-options="plain:true">查看项目</a>
					</div>
				</div>
				<div title="拨款管理" style="padding:10px">此功能暂不实现</div>
				<div title="系统管理" style="padding:10px" data-options="plain:true">
					<div class="easyui-panel" style="padding:5px;">
						<!-- 						<a href="#" class="easyui-linkbutton" data-options="plain:true">申报人管理</a>
						<a href="#" class="easyui-linkbutton" data-options="plain:true">单位信息维护</a> -->
						<a href="<%=path%>/user/my?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true"
							style="background:  #B0E0E6;">个人信息维护</a> <a
							href="<%=path%>/user/personal?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">个人账号管理</a>
						<!--<a href="#" class="easyui-menubutton" data-options="menu:'#mm2'">单位信息维护</a>-->
						<button style="align='right'"
							onclick="javascript:exprot(${user.UId})">导出PDF</button>
					</div>
					<!--
					<div id="mm2" style="width:100px;">
						<div>Help</div>
						<div>Update</div>
						<div>About</div>
					</div>-->
				</div>
			</div>
		</div>

		<!--个人信息维护-->
		<div class="row" style="margin-top: 20px;" align="center">
			<form action="<%=path%>/user/updateUser">
				<input type="hidden" name="UName" value="${user.UName}"> <input
					type="hidden" name="UPapertype" value="${user.UPapertype }">
				<input type="hidden" name="UPapernum" value="${user.UPapernum }">
				<input type="hidden" name=cid value="${user.company.CId }">
				<input type="hidden" name="UStatus" value="${user.UStatus}">
				<input type="hidden" name="UId" value="${user.UId}">
				<%-- <input type="hidden" name="banks" value="${user.banks}"> --%>
				<input type="hidden" name="lid" value="${user.login.LId}">
				<div style="background-color: #fff;padding: 20px;">
					<table title="个人信息" style="height: 500px; width: 60%">
						<tr>
							<td align="left">姓名:<label>${user.UName}</label></td>
							<td>性别: <input type="radio" name="USex" value="男"
								checked="checked">男 <input type="radio" name="USex"
								value="女">女
							</td>
						</tr>
						<tr>
							<td align="left">证件类型:<label>${user.UPapertype }</label></td>
							<td>证件号:<label>${user.UPapernum }</label></td>
						</tr>
						<tr>
							<td align="left">工作单位:<label>${user.company.CName }</label></td>
							<td>职称:<input type="text" value="${user.UJobname }"
								name="UJobname" /></td>
						</tr>
						<tr>
							<td align="left">电话:<input type="text" name="UPhone"
								value="${user.UPhone }" required="required"/></td>
							<td>邮箱:<input type="email" name="UEamil"
								value="${user.UEamil }" required="required"/></td>
						</tr>
						<tr>
							<td align="left">地址:<input type="text" name="UAddress"
								value="${user.UAddress }" required="required"/></td>
							<td>职务:<input type="text" name="UJob" value="${user.UJob }" required="required"/></td>
						</tr>
						<tr>
							<td align="left">生日:<input type="text" name="UBirthday" required="required"
								value="<fmt:formatDate value="${user.UBirthday }" pattern="yyyy/MM/dd"/>" /></td>
							<td>邮政编码:<input type="text" name="UPostcode"
								value="${user.UPostcode }" required="required"/></td>
						</tr>
						<tr>
							<td align="left">传真:<input type="text" name="UFax"
								value="${user.UFax }" required="required"/></td>
							<td>激活状态:${user.UStatus>=1?"已激活":"未激活" }</td>
						</tr>
						<tr>
							<td align="center"><input type="submit" value="保存"></td>
							<td><input type="button" onclick="" value="返回"></td>
						</tr>
					</table>
				</div>
			</form>
			<!--银行维护-->
			<form action="<%=path%>/user/addBank">
				<div class="row" style="margin-top: 20px; background-color:#778899 "
					align="center">
					<table style="height: 200px; width: 60%">
						<tr>
							<td align="left">开户名:<label>${user.UName}</label>
							</td>
							<td>开户行:<select name="BName">
									<option value="中国银行">中国银行</option>
									<option value="中国工商用户">中国工商用户</option>
									<option value="中国建设银行">中国建设银行</option>
									<option value="中国农业银行">中国农业银行</option>
									<option value="交通银行">交通银行</option>
									<option value="中国邮政银行">中国邮政银行</option>
							</select></td>
						</tr>
						<tr>
							<td align="left">银行卡号:<input type="text" name="BNo" required="required"/></td>
						</tr>
						<tr>
							<td align="center"><input type="submit" value="保存"></td>
							<td><input type="button" onclick="" value="返回"></td>
						</tr>
					</table>
					<input type="hidden" name="uid" value="${user.UId }" />
				</div>
			</form>


			<script src="<%=path%>/js/jquery1.12.4.min.js"></script>
			<script src="<%=path%>/js/bootstrap.min.js"></script>
			<script src="<%=path%>/js/jquery.easyui.min.js"></script>
			<script type="text/javascript">
				$(function() {
			
					$('.easyui-tabs').tabs('select', '系统管理');
			
					$('#dg').datagrid().datagrid({
						pagination : true, //如果为true，则在DataGrid控件底部显示分页工具栏。
						fitColumns : false
					});
				});
				function exprot(id) {
					window.location.href = "<%=path%>/Exprot?id=" + id;
				}
			</script>
</body>
</html>